package cn.com.hhrcw.block.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 
 * @Author: lixingxing
 * @Date: 2020-09-16
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class BlockDataVO implements Serializable {


    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 区块id
     */
    private String blockId;

    /**
     * 类型
     */
    private String type;

    /**
     * 图片
     */
    @Dict(dicCode = "id", dicText = "url",dictTable = "file")
    private String image;

    /**
     * 标题
     */
    private String title;

    /**
     * 跳转地址
     */
    private String redirect;

    /**
     * 数据id
     */
    private String sourceId;
    /**
     * 是否打开新页面 true 是, false 否
     */
    private Boolean open;

    /**
     * 是否启用 true 启用 false 停用
     */
    private Boolean disabled;

    /**
     * 排序
     */
    private Integer sequence;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
